package com.hoshiicloud.stock.feign.hystrix;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.stock.feign.VendorFeignService;

/**
 * 供应商微服务FeignClient熔断器
 *
 * @author : yangcheng
 * @date : 2019/5/20 09:42
 * @mail : maiboyc@163.com
 **/
public class HystrixVendorFeignFallback implements VendorFeignService {

    /**
     * 根据id获取租户供应商信息
     * @param id 租户ID
     * @return Response
     */
    @Override
    public Response getComVendorById(Long id) {
        return Response.failed("查询租户供应商信息失败");
    }

    /**
     * 根据id获取平台供应商信息
     * @param id 平台ID
     * @return Response
     */
    @Override
    public Response getPlatVendorById(Long id) {
        return Response.failed("查询平台供应商信息失败");
    }

    /**
     * 根据id获取店铺供应商信息
     * @param id 店铺ID
     * @return Response
     */
    @Override
    public Response getStoreVendorById(Long id) {
        return Response.failed("查询店铺供应商信息失败");
    }

}